package com.xyy.saas.payment.service.impl;

import com.xyy.saas.payment.dao.mapper.PayUserMapper;
import com.xyy.saas.payment.dao.model.PayUserPo;
import com.xyy.saas.payment.service.PayUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author zhangwenxiong
 * @Date 2020/11/5 11:10
 * @Version 1.0
 */
@Service
public class PayUserServiceImpl implements PayUserService {

    @Autowired
    private PayUserMapper payUserMapper;

    @Override
    public Long getTotal(Map<String, Object> param) {
        return payUserMapper.getTotal(param);
    }

    @Override
    public PayUserPo getUserByAccount(String account) {
        return payUserMapper.getUserByAccount(account);
    }

    @Override
    public List<PayUserPo> getUser(Map<String, Object> param) {
        return payUserMapper.getUser(param);
    }

    @Override
    public void addUser(PayUserPo po) {
        payUserMapper.addUser(po);
    }

    @Override
    public void deleteUser(String account) {
        payUserMapper.deleteUser(account);
    }

    @Override
    public void updateUser(PayUserPo po) {
        payUserMapper.updateUser(po);
    }
}
